﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using FSS.Core.Util;
using FSS.Core.Controls;
using IBatisNet.Common.Logging;
using FSS.BLL.Services;
using FSS.BLL.Entities;

namespace SalesManagement.Modules.Sales
{
    public partial class Quotation : BasePage, IBaseListPage
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(Quotation));
        public Quotation()
            : base(SCREENS.QUOTATION)
        {

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BindingGrid();
        }
        [DirectMethod]
        public void DocumentReady()
        {
            //BindingGrid();
        }
        private void BindingGrid()
        {
            ProductService productS = ProductService.GetInstance();
            IList<ProductEntity> lstProduct = productS.LoadAll();
            if (null != lstProduct)
            {
                this.storeProduct.DataSource = lstProduct;
                this.storeProduct.DataBind();
            }
        }
        public void btnAdd_Click(object sender, DirectEventArgs e)
        {
            //this.WindowEditor.ShowAndReset();
        }
        public void btnEdit_Click(object sender, DirectEventArgs e) { }
        public void btnDelete_Click(object sender, DirectEventArgs e) { }
        public void btnPrint_Click(object sender, DirectEventArgs e) { }
        public void btnImport_Click(object sender, DirectEventArgs e) { }
        public void btnExport_Click(object sender, DirectEventArgs e) { }
        public void btnFind_Click(object sender, DirectEventArgs e) { }    
    }
}
